package stud.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import stud.aistar.entity.Time;
import stud.aistar.mapper.TimeMapper;
import stud.aistar.service.ITimeService;

import java.util.List;

/**
 * Created by Jcdz on 2019/9/28.
 */
@Service
@Transactional
public class TimeServiceImpl implements ITimeService {

    @Autowired
    private TimeMapper timeMapper;

    @Override
    public List<Time> findAll() {
        return timeMapper.findAll();
    }

    @Override
    public Time findById(Integer id) {
        return timeMapper.findById(id);
    }
}
